package org.liuqm.servlet;

import cn.hutool.json.JSONObject;
import org.liuqm.common.AjaxResult;
import org.liuqm.filter.RequestMapping;

import java.util.ArrayList;

@RequestMapping("/system")
public class SystemController {

    @RequestMapping("/user/getInfo")
    public AjaxResult getUserInfo(){
        AjaxResult ajaxResult = new AjaxResult();

        JSONObject  userJosn = new JSONObject();
        userJosn.put("userName", "张三");
        userJosn.put("userId", "123");
        ajaxResult.setData(userJosn);
        return ajaxResult;
    }

    @RequestMapping("/menu/getRouters")
    public AjaxResult getRouters(){

        AjaxResult result=AjaxResult.success("获取菜单数据成功");
        result.setData(new ArrayList<>());
        return result;

    }
}
